import os

APPID = '2021000117620642'

# 默认回调
APP_NOTIFY_URL = None

# 阿里公钥
ALIPAY_PUBLIC_KEY_FILE_PATH = os.path.join(os.path.dirname(__file__), 'rsa2', 'alipay_public_key.pem')
ALIPAY_PUBLIC_KEY_STRING = open(ALIPAY_PUBLIC_KEY_FILE_PATH).read()

# 自己私钥
APP_PRIVATE_KEY_FILE_PATH = os.path.join(os.path.dirname(__file__), 'rsa2', 'app_private_key.pem')
APP_PRIVATE_KEY_STRING = open(APP_PRIVATE_KEY_FILE_PATH).read()

# 标签加密类型
SIGN_TYPE = "RSA2"

# True表示测试沙箱环境
DEBUG = True

# 阿里网关
ALIPAY_GATEWAY = "https://openapi.alipaydev.com/gateway.do?" if DEBUG else "https://openapi.alipay.com/gateway.do?"